import Qrcode from 'qrcode';

export default (toDataUrl: string) => {
    Qrcode.toDataURL(toDataUrl, function (err, url) {
        if (err) throw ('生成二维码出错!');
        return url
    })
}